package com.ldc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.ToString;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;

/**
 * 功能说明
 *
 * @auther liudc
 * @since 2023/6/11
 */
@Data
@ToString
@TableName(value = "sys_user")
public class SysUser {
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;
    @TableField
    private String userName;
    @TableField
    @JsonIgnore
    private String passWord;
    @TableField
    private boolean enabled;
    @TableField
    private boolean hasAccountNonLock;
    @TableField
    private boolean hasAccountNonExpired;
    @TableField
    private boolean hasCredentialNonExpired;
    @TableField
    private long changeTime;
    @TableField
    private long createTime;
}
